<?php /* @var $this Controller */ ?>
<?php
$this->layout = ' ';
$cs = Yii::app()->clientScript;
$themePath = Yii::app()->theme->baseUrl;
$assetsPath = $themePath.'/assets';
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>系统登录-<?php echo Yii::app()->name;?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Avant" />
	<meta name="author" content="The Red Team" />

	<link href="<?php echo $assetsPath?>/css/styles.min.css" rel='stylesheet' type='text/css' />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class="focusedform">

<div class="verticalcenter">
	<h1><?php echo Yii::app()->name;?>系统</h1>
	<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'login-form',
					'enableClientValidation'=>true,
					'clientOptions'=>array(
						'validateOnSubmit'=>true,
					),
					'htmlOptions'=>array(
						'class'=>'form-horizontal'
					)
				)); ?>
	<div class="panel panel-primary">
		<div class="panel-body">
			<h4 class="text-center" style="margin-bottom: 25px;">登录后才能开始！</h4>
				
					<div class="form-group">
						<label for="username" class="control-label col-sm-4" style="text-align: left;">用户名</label>
						<div class="col-sm-12">
							<div class="input-group">
								<span class="input-group-addon"><i class="icon-user"></i></span>
								<?php echo $form->textField($model,'username',array(
								'class'=>'form-control',
								'id'=>'email',
								'placeholder'=>'输入用户名'
								)); ?>
								<?php echo $form->error($model,'username'); ?>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label for="password" class="control-label col-sm-4" style="text-align: left;">密码</label>
						<div class="col-sm-12">
							<div class="input-group">
								<span class="input-group-addon"><i class="icon-lock"></i></span>
							
							<?php echo $form->passwordField($model,'password',array(
									'class'=>'form-control',
									'id'=>'password',
									'placeholder'=>'输入密码'
							)); ?>
							<?php echo $form->error($model,'password'); ?>
							</div>
						</div>
					</div>
					<div class="clearfix">
						<div class="pull-right"><label><input type="checkbox" checked="" />下次自动登录</label></div>
					</div>
					<?php echo CHtml::submitButton('登录',array(
							'class'=>"btn btn-primary btn-block"
					));?>
					
				
		</div>
		<div class="panel-footer">
			<a href="#" class="pull-left btn btn-link" style="padding-left:0">忘记密码?</a>
			
			<div class="pull-right">
				<?php echo CHtml::resetButton('重置',array(
						'class'=>"btn btn-default",
				));
				?>
			</div>
		</div>
	</div>
	<?php $this->endWidget(); ?>
 </div>

      
</body>
</html>
